package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.ShiftinformationMapper;
import com.scheduling.system.domain.Shiftinformation;
import com.scheduling.system.service.IShiftinformationService;

/**
 * 班信息查询Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class ShiftinformationServiceImpl implements IShiftinformationService 
{
    @Autowired
    private ShiftinformationMapper shiftinformationMapper;

    /**
     * 查询班信息查询
     * 
     * @param id 班信息查询主键
     * @return 班信息查询
     */
    @Override
    public Shiftinformation selectShiftinformationById(Long id)
    {
        return shiftinformationMapper.selectShiftinformationById(id);
    }

    /**
     * 查询班信息查询列表
     * 
     * @param shiftinformation 班信息查询
     * @return 班信息查询
     */
    @Override
    public List<Shiftinformation> selectShiftinformationList(Shiftinformation shiftinformation)
    {
        return shiftinformationMapper.selectShiftinformationList(shiftinformation);
    }

    /**
     * 新增班信息查询
     * 
     * @param shiftinformation 班信息查询
     * @return 结果
     */
    @Override
    public int insertShiftinformation(Shiftinformation shiftinformation)
    {
        return shiftinformationMapper.insertShiftinformation(shiftinformation);
    }

    /**
     * 修改班信息查询
     * 
     * @param shiftinformation 班信息查询
     * @return 结果
     */
    @Override
    public int updateShiftinformation(Shiftinformation shiftinformation)
    {
        return shiftinformationMapper.updateShiftinformation(shiftinformation);
    }

    /**
     * 批量删除班信息查询
     * 
     * @param ids 需要删除的班信息查询主键
     * @return 结果
     */
    @Override
    public int deleteShiftinformationByIds(Long[] ids)
    {
        return shiftinformationMapper.deleteShiftinformationByIds(ids);
    }

    /**
     * 删除班信息查询信息
     * 
     * @param id 班信息查询主键
     * @return 结果
     */
    @Override
    public int deleteShiftinformationById(Long id)
    {
        return shiftinformationMapper.deleteShiftinformationById(id);
    }
}
